package com.test.CronThread;

import java.util.concurrent.Callable;

/**
 * ${DESCRIPTION}
 *
 * @author muxiaoyu
 * @create 2017/07/18 16:45
 **/
public class CountNum implements Callable {
    @Override
    public Object call() throws Exception {

        int c = 0;
        for (int i = 1; i <= 10; i++) {
            c += i;
            System.out.println("c=" + c + ";i=" + i);
            Thread.sleep(11000);
        }
        return c;
    }
}
